<?php
class RefinancingSystem extends AppModel {
    var $name = 'RefinancingSystem';
    var $primaryKey = 'refinancing_system_id';
    var $displayField = 'building_id';

    var $belongsTo = array(
        'Building',
        'AmortizationSystem' => array(
            'className' => 'LookupValue',
            'foreignKey' => 'amortization_system',
            'conditions' => array('AmortizationSystem.lookup_type' => 'AMORTIZATION_SYSTEM'),
            'fields' => '',
            'order' => 'AmortizationSystem.meaning'
        )
    );
}
?>
